import request from '@/utils/request';

export const login = (data) => {
    return request({
        url: '/v1_0/authorizations',
        method: 'post',
        data
    })
}
export const uesrInfo = () => {
    return request({
        url: '/v1_0/user/profile',
    })
}
export const chengeName = (data) => {
    return request({
        url: '/v1_0/user/profile',
        method: 'patch',
        data
    })
}
export const editImg = (data) => {
    return request({
        url: '/v1_0/user/photo',
        method: 'patch',
        data
    })
}